<?php
	$url = "http://localhost:8080/moms-diary/services/comments/add/30509E038FA24975A46607AEA5740724";
	$query = http_build_query(
				array(
					"comment" => "hallooooooow...."
					)
				);

	$ch = curl_init($url);
	curl_setopt($ch, CURLOPT_HEADER, true);
	curl_setopt($ch, CURLOPT_POST, true);
	curl_setopt($ch, CURLOPT_POSTFIELDS, $query);
	curl_setopt($ch, CURLOPT_USERPWD, 'yudhi.karunia@babytivities.com:123');
	curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);

	$data = curl_exec($ch);
	$return =  curl_getinfo($ch);

	print_r($data);
	print_r($return);
	curl_close($ch);

?>
